<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
%>
<script type="text/javascript">
	function loadContent(url) {
		$("#mainContent").attr("src", url);
	}
	function setIframeHeight(iframe) {
		if (iframe) {
		var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
		if (iframeWin.document.body) {
		iframe.height = (iframeWin.document.documentElement.scrollHeight +50) ||( iframeWin.document.body.scrollHeight+50);
		}
		}
		};

		window.onload = function () {
		setIframeHeight(document.getElementById('mainContent'));
		};
function homePageFormPost(){
	
	$("#homePageForm").submit();
}
</script>
<div id="div_TC">
	<div class="TC_title">
		<h3>病案结构化数据查看&nbsp;&nbsp;</span></h3>
		<%-- <input type="button" style="width: 90px;" onclick="homePageFormPost()" class="btn" value="通过编目">
		<a href="${basePath}/medical_record/print?visitGuid=${visitGuid }" class="btn">打印</a>
		<form action="${basePath}/medical_record/homePageTreamtTrace" method="post" id="homePageForm">
			<input type="hidden" name="visitGuid" value="${visitGuid }">
		</form> --%>
		
	</div>
	<div class="TC_menu">
		<h3>病案结构化数据目录</h3>
		<ul role="tablist">
			<li class="TC_li active tc_basic"><a    onclick="loadContent('${basePath}medical_record/searchHomePageBasicForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="baseInfo" role="tab" data-toggle="tab">基本数据</a>
			</li>
			<li class="TC_li tc_crue"><a onclick="loadContent('${basePath}medical_record/editSearchPageCureForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="cureMentInfo" role="tab" data-toggle="tab">治疗信息</a>
			</li>
			
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageDiagForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="diagMentInfo" role="tab" data-toggle="tab">疾病诊断</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageOperateForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="operateMentInfo" role="tab" data-toggle="tab">手术记录</a>
			</li>
 			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageInfusionBloodForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="infusionBloodMentInfo" role="tab" data-toggle="tab">输血记录</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageTransferDeptForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="transferDeptMentInfo" role="tab" data-toggle="tab">转科记录</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageDrugAllergyForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="drugAllergyMentInfo" role="tab" data-toggle="tab">药物过敏</a>
			</li>
<%-- 			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageIntensiveCareForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="intensiveCareMentInfo" role="tab" data-toggle="tab">重症监护</a>
			</li> --%>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageNurseForm?visitGuid=${visitGuid}')" aria-controls="nurseMentInfo" role="tab" data-toggle="tab">护理记录</a>
			</li>
<%-- 			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePagePressureSoreForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="pressureSoreMentInfo" role="tab" data-toggle="tab">压疮/床褥</a>
			</li> --%>
			<%-- <li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_pregnancy_birth_form?visitGuid=${visitGuid}')" aria-controls="pregnancyBirthMentInfo" role="tab" data-toggle="tab">产科记录</a>
			</li> --%>
<%-- 			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageAntibacterialDrugForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="antibacterialAgentsMentInfo" role="tab" data-toggle="tab">抗菌药物</a>
			</li> 
			--%>
  			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageInfectionForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="infectionMentInfo" role="tab" data-toggle="tab">医院感染</a>
			</li> 
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageExaminationReportsForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="examinationReportsMentInfo" role="tab" data-toggle="tab">检验报告单</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageDoctorAdviceTemporaryForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="doctorAdviceTemporaryMentInfo" role="tab" data-toggle="tab">临时医嘱</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageDoctorAdviceStandingForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="doctorAdviceStandingMentInfo" role="tab" data-toggle="tab">长期医嘱</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/searchHomePageVisitCostForm?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="visitCostMentInfo" role="tab" data-toggle="tab">住院费用</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/search_home_page_visit_progress_note_form?visitGuid=${visitGuid}&fileName=${fileName}')" aria-controls="progressNoteMentInfo" role="tab" data-toggle="tab">病程记录</a>
			</li>
			<li class="TC_li"><a onclick="loadContent('${basePath}medical_record/edit_home_page_note_form?visitGuid=${visitGuid}')" aria-controls="visitProgressNote" role="tab" data-toggle="tab">表单记录</a>
			</li>
		</ul>
	</div>
	<div class="content_list">
		<div class="tab-content">
			<div role="tabpanel" class="tab-pane active" id="baseInfo">
				<iframe id="mainContent" style="border: 0px;" width="100%"  scrolling="no" src="${basePath }medical_record/searchHomePageBasicForm?visitGuid=${visitGuid}&fileName=${fileName}">	
				</iframe>
			</div>
		</div>
	</div>
</div>
